<html>
<head><meta charset="utf-8"><title>Lint warnings only seen with --fix? · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html">Lint warnings only seen with --fix?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="245930156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/245930156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#245930156">(Jul 14 2021 at 08:00)</a>:</h4>
<p>On nightly (2021-07-13), when using cargo clippy --fix I'm getting a whole bunch of warnings that I don't get when running without --fix</p>



<a name="245932001"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/245932001" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#245932001">(Jul 14 2021 at 08:23)</a>:</h4>
<p>Can you post a crate where this is the case? </p>
<p>Maybe <code>--fix</code> ignores <code>allow</code> attributes? That would be weird though <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span></p>



<a name="245951258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/245951258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#245951258">(Jul 14 2021 at 12:14)</a>:</h4>
<p>This happens because fix also passes --all-targets</p>



<a name="245951277"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/245951277" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#245951277">(Jul 14 2021 at 12:15)</a>:</h4>
<p>Not sure if it's possible to avoid that, I haven't tried</p>



<a name="246002627"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/246002627" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#246002627">(Jul 14 2021 at 18:49)</a>:</h4>
<p>I was running it on the finalfusion crate</p>



<a name="246002672"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Lint%20warnings%20only%20seen%20with%20--fix%3F/near/246002672" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Lint.20warnings.20only.20seen.20with.20--fix.3F.html#246002672">(Jul 14 2021 at 18:49)</a>:</h4>
<p>ahh, I think that makes sense, the warnings were in benchmarks I think</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>